import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'routers/router.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: const Size(750, 1334), //配置设计稿的宽度高度
      builder: () => MaterialApp(
        // home: Tabs(),
        // 取消右上角的debugger斜杠
        debugShowCheckedModeBanner: false,
        // 初始化路由
        initialRoute: '/',
        // 路由配置
        onGenerateRoute: onGenerateRoute,
        theme: ThemeData(
            colorScheme: const ColorScheme(
              // 上方标题拦颜色
                primary: Colors.white,

                secondary: Colors.green,
                background: Colors.white,
                error: Colors.red,
                brightness:Brightness.light,
                onBackground: Colors.pink,

                onError: Colors.yellow,
                onPrimary: Colors.black87,//字体颜色
                onSecondary: Colors.redAccent,
                onSurface: Colors.redAccent,
                surface: Colors.redAccent

        )),
      ),
    );
  }
}
